<template>
  <base-breadcrumb>
    <a-radio-group
      v-model="btnVal"
      @change="onChange()"
    >
      <a-radio-button value="list">
        清单
      </a-radio-button>
      <a-radio-button value="top">
        汇总
      </a-radio-button>
    </a-radio-group>

    <list v-if="btnVal === 'list'" />
    <collect v-else />
  </base-breadcrumb>
</template>
<script>
    import list from './components/list/list';
    import collect from './components/collect/collect';
    export default {
	name:'a'+Date.now(),
        components:{
            'list':list,
            'collect':collect
        },
        data:function(){
            return{
                btnVal:'list'
            }
        },
        methods:{
            onChange(){
                console.log(this.btnVal)
                // this.$router.replace({path:'/material/procurement/plan#1'})
                // location.replace(location.href+'#1')

            }
        },
        mounted() {
            console.log(this.$route.query)
        }
    }
</script>
